<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<body>
	<ui:composition template="/template.xhtml">
		<ui:define name="title">
                Async Bean
            </ui:define>
		<ui:define name="body">
			<h:form id="addWindowForm" class="form">
				<div class="btn-group">
					<h:commandButton action="${asyncBean.doOperation()}" value="Do some" class="btn btn-large btn-success" />
					<h:commandButton action="${asyncBean.initString()}" value="Get text" class="btn btn-large btn-danger" />
				</div>
			</h:form>			
			<div class="row">
				<div class="span4">
					<h:outputLabel value="${asyncBean.text}" />
				</div>
			</div>
		</ui:define>
	</ui:composition>
</body>
</html>
